import config from "@/config"
import http from "@/utils/request"


export default {
	userlist: {
		url: `${config.API_URL}/user`,
		name: "获取用户列表",
		get: async function(data={}){
			return await http.get(this.url,data)
		}
	},
	userlistPost: {
		url: `${config.API_URL}/user`,
		name: "添加用户",
		post: async function(data={}){
			return await http.post(this.url,data)
		}
	},
	userlistDelete: {
		url: `${config.API_URL}/user`,
		name: "删除用户",
		delete: async function(data={}){
			return await http.delete(this.url,data)
		}
	},
	userlistUpdate: {
		url: `${config.API_URL}/user`,
		name: "修改用户",
		put: async function(data={}){
			return await http.put(this.url,data)
		}
	},
	userlistStatus: {
		url: `${config.API_URL}/user`,
		name: "修改用户状态",
		patch: async function(data={}){
			return await http.patch(this.url,data)
		}
	}
} 
